/*
 * @Author: jiu yin
 * @Date: 2023-06-01 11:43:29
 * @LastEditTime: 2023-06-01 12:35:49
 * @LastEditors: jiu yin zhen jing
 * @FilePath: \init_react\src\router\auth\index.tsx
 * jiu
 */
import { useState, useEffect } from 'react'
import './index.scss'
import { useLocation, useNavigate, Navigate } from 'react-router-dom';
import { getToken } from "@/utils/auth";




function Auth(props:any) {
    let location = useLocation()
    // if (location.pathname === '/login') return props.children
    
    // let token =getToken()
    // if (!token) return <Navigate to="/login" />

    
    return props.children
}

export default Auth
